#include <stdlib.h>
#include <time.h>
#include <stdio.h>

int main()
{
    int i,j;
    int res, go = 0, notgo = 0;
    int n;
    printf("Please enter a sample number: (for best result, the number should between 3-10)\t");
    scanf("%d", &n);
    while(n>0)
    {
        srand((int)time(0)+n);
        res = 0;
        for(i=0;i<10;i++)
        {
            j=1+(int)(10.0*rand()/(RAND_MAX+1.0));
            res = res + j%2;
        //printf(" %d ",res);
        }
        if(res%2 == 0)
            go++;
        else
            notgo++;
        n--;
    }
    if((go-notgo)>0)
         printf("u should go\n");
    else
        printf("u should not go\n");
    
    return EXIT_SUCCESS;
}
